package no.rmz.chez.movementGeneration;

import no.rmz.chez.chess.board.ChessBoard;
import no.rmz.chez.chess.board.Color;
import no.rmz.chez.game.Move;
import no.rmz.chez.game.MovementGenerator;
import no.rmz.chez.game.moveSelection.MoveSelectors;

public final class NaiveMoveGenerator implements MoveGenerator {
 

    public NaiveMoveGenerator() {
    }

  

    /**
     * Get the next move using whatever strategy this player implements.
     * @param b the board
     * @return the move.
     */
    @Override
    public Move getNextMove(final Color c, final ChessBoard b) {
        return MoveSelectors.RANDOM_SELECTOR.selectFrom(MovementGenerator.getPossibleMoves(c, b));
    }
}
